#@adminLayout() #define main()
<link href="#(ctx)/static/css/style.css" rel="stylesheet"/>
<body class="white-bg" style="width: 100%;background: none">
<div class="ui-layout-north">
    <table data-mobile-responsive="true" style="table-layout: fixed; word-break: break-all;"
           class="table table-bordered table-hover">
        <thead>
            <tr>
                <th style="width: 100px">操作</th>
                <th>名称</th>
                <th>条件</th>
                <th>备注</th>
            </tr>
        </thead>
        <tbody>
            #for(item : nodes)
            <tr>
                <td>
                    <a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="editCondition()">条件</a>
                </td>
                <td>
                    <a title="#(item.name)" href="javascript:void(0)" onclick="selectCol()">#(item.name)</a></td>
                <td>#(item.name)</td>
                <td>$1</td>
            </tr>
            #end
        </tbody>
    </table>
</div>
<div class="ui-layout-west">
    <table data-mobile-responsive="true" style="table-layout: fixed; word-break: break-all;"
           class="table table-bordered table-hover">
        <thead>
            <tr>
                <th>名称</th>
                <th style="width: 60px;">类型</th>
                <th>备注</th>
            </tr>
        </thead>
        <tbody>
        #for(item : table)
            <tr>
                <td>
                    <a href="javascript:void(0)" onclick="addFiled('#(item.fieldname)')" title="#(item.fieldname)">#(item.fieldname)</a>
                </td>
                <td>
                    #(item.fieldtype)
                </td>
                <td>
                    #(item.fielddescript)
                </td>
            </tr>
        #end
        </tbody>
    </table>
</div>
<div class="ui-layout-center">
    <table data-mobile-responsive="true" style="table-layout: fixed; word-break: break-all;"
           class="table table-bordered table-hover">
        <thead>
        <tr>
            <th>字段</th>
            <th>备注</th>
            <th>设置值</th>
            <th>类型</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <td>

            </td>
            <td>

            </td>
            <td>

            </td>
            <td>

            </td>
        </tr>
        </tbody>
    </table>
</div>
<script type="text/javascript">
  var wf_id='#(wf_id)';
  var node_id='#(node_id)';
  var prefix ="#(ctx)/jwflow";
  $(function(){

    var panehHidden = false;
    if ($(this).width() < 769) {
      panehHidden = true;
    }
    $('body').layout({initClosed: panehHidden, west__size: 300, north__size: 160});

      /*$('#table').bootstrapTable({
          url: 'data1.json',
          columns: [{
              field: 'id',
              title: 'Item ID'
          }, {
              field: 'name',
              title: 'Item Name'
          }, {
              field: 'price',
              title: 'Item Price'
          }, ]
      });*/
  });

  function dealTypeSelect(deal_type)
  {
    if(deal_type=="2")
    {
      $("#deal_type_rate").removeAttr('disabled');
    }
    else
    {
      $("#deal_type_rate").attr('disabled',true);
    }
  }

  function submitHandler()
  {
    $.modal.close();
  }

  function openCond()
  {

  }
</script>
</body>
#end